import 'package:flutter/foundation.dart';
import 'package:flutter/services.dart';

import 'talkingdata_platform_interface.dart';

/// An implementation of [TalkingdataPlatform] that uses method channels.
class MethodChannelTalkingdata extends TalkingdataPlatform {
  /// The method channel used to interact with the native platform.
  @visibleForTesting
  final methodChannel = const MethodChannel('talkingdata');

  @override
  Future<String?> initTalkingdata() async {
    final retult = await methodChannel.invokeMethod<String>('initTalkingdata');
    return retult;
  }
}
